import type { EditUserParams, UserRes } from "@/types/user"
import { request } from "@/utils/https"

export const getUserAPI = () => {
  return request<UserRes>('/v1_0/user/profile', 'GET')

}

export const editUserAPI = (params: EditUserParams) => {
  return request<EditUserParams>('/v1_0/user', 'PATCH', params)
}
